﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Account/Account.Master" AutoEventWireup="true"
    CodeBehind="~/Account/Register.aspx.cs" Inherits="ViewLayer.Account.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <%--<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" OnCreatedUser="RegisterUser_CreatedUser">
        <LayoutTemplate>
            <asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder>
            <asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder>
        </LayoutTemplate>
        <WizardSteps>
            <asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
                <ContentTemplate>--%>
    <h1>
        Project Controller
    </h1>
    <h2>
        Realizar Cadastro
    </h2>
    <p class="subTexto">
        Use o formul&aacute;rio abaixo para se cadastrar.
        <br />
        Senhas (Passwords) devem ter no min&iacute;mo
        <%= Membership.MinRequiredPasswordLength %>
        caracteres.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="RegisterUserValidationGroup" />
    <div class="accountInfo">
        <fieldset class="register">
            <p>
                <asp:Label ID="NameLabel" runat="server" AssociatedControlID="Email">Nome:</asp:Label>
                <asp:TextBox ID="Name" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="Name"
                    CssClass="failureNotification" ErrorMessage="Nome necess&aacute;rio." ToolTip="Nome necess&aacute;rio."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                    CssClass="failureNotification" ErrorMessage="E-mail necess&aacute;rio." ToolTip="E-mail necess&aacute;rio."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nome de Usu&aacute;rio (Username):</asp:Label>
                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                    CssClass="failureNotification" ErrorMessage="Nome de Usu&aacute;rio (Username) necess&aacute;rio."
                    ToolTip="Nome de Usu&aacute;rio (Username) necess&aacute;rio." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                    CssClass="failureNotification" ErrorMessage="Senha (Password) necess&aacute;ria."
                    ToolTip="Senha (Password) necess&aacute;ria." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification"
                    Display="Dynamic" ErrorMessage="Confirma&ccedil;&atilde;o da Senha (Password) necess&aacute;ria."
                    ID="ConfirmPasswordRequired" runat="server" ToolTip="Confirma&ccedil;&atilde;o da Senha (Password) necess&aacute;ria.."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                    ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                    ErrorMessage="Senha (Password) e a Confirma&ccedil;&atilde;o da senha devem ser id&ecir;nticas."
                    ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
            </p>
            <%--<p>
                <asp:Label ID="PerfilLabel" runat="server" AssociatedControlID="Perfil">Perfil:</asp:Label>
                <asp:DropDownList ID="Perfil" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="perfilrequired" runat="server" ControlToValidate="Perfil"
                    ErrorMessage="Perfil necess&aacute;rio." ToolTip="Perfil necess&aacute;rio."
                    CssClass="failureNotification" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>--%>
        </fieldset>
        <p class="submitButton">
            <%-- <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Create User"
                ValidationGroup="RegisterUserValidationGroup" />--%>
            <asp:Button ID="btnCreateUser" runat="server" Text="Cadastrar" ValidationGroup="RegisterUserValidationGroup"
                OnClick="CreateUserButton_Click" CssClass="btn btn-logIn" />
        </p>
    </div>
    <div>
        <p>
            <asp:Button ID="GoBackButton" runat="server" Text="Voltar" OnClick="GoBackButton_Click" CssClass="btn btn-logIn" />
        </p>
    </div>
    <%--</ContentTemplate>
                <CustomNavigationTemplate>
                </CustomNavigationTemplate>
            </asp:CreateUserWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>--%>
</asp:Content>